//package com.majun.filter;
//
//import com.majun.config.filter.LogFilter;
//import org.springframework.boot.web.servlet.FilterRegistrationBean;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.core.Ordered;
//
//@Configuration
//public class FilterConfig {
//
//	@Bean
//	public FilterRegistrationBean logFilter() {
//		final FilterRegistrationBean filterRegistrationBean = new FilterRegistrationBean();
//		final LogFilter logFilter = new LogFilter();
//		filterRegistrationBean.setFilter(logFilter);
//		// 执行顺序最靠前
//		filterRegistrationBean.setOrder(Ordered.HIGHEST_PRECEDENCE);
//		return filterRegistrationBean;
//	}
//
//}